/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.shop.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.shop.user.api.dto.ShopUserDTO;
import com.pig4cloud.pigx.shop.user.api.entity.ShopEquity;
import com.pig4cloud.pigx.shop.user.api.vo.ShopEquityVO;
import com.pig4cloud.pigx.shop.user.api.vo.ShopUserVO;

import java.util.List;

/**
 * 权益包
 *
 * @author pigx code generator
 * @date 2024-01-14 17:54:24
 */
public interface ShopEquityService extends IService<ShopEquity> {

	/**
	 * 分页查询
	 * @param page
	 * @param shopEquity
	 * @return
	 */
	IPage<ShopEquityVO> getPage(Page page, ShopEquity shopEquity);

	/**
	 * 添加权益包
	 * @param shopEquityVO
	 * @return
	 */
	R addEquity(ShopEquityVO shopEquityVO);

	/**
	 * 修改权益包
	 * @param shopEquityVO
	 * @return
	 */
	R updateEquity(ShopEquityVO shopEquityVO);

	/**
	 * 获取权益包详情
	 * @param id
	 * @return
	 */
	R getEquityInfo(Long id);

	/**
	 * 删除权益包
	 * @param id
	 * @return
	 */
	R removeEquity(Long id);

	/**
	 * 获取权益包列表
	 * @return
	 */
	List<ShopEquityVO> getShopEquityList(ShopEquity shopEquity);

	/**
	 * 获取权益包
	 * @param shopEquityVO
	 * @return
	 */
	R receiveShopEquity(ShopEquityVO shopEquityVO);

}
